Sending Alerts to SysLog |
In this section you will learn how to use SysLog and view the log messages or alerts. The following example illustrates the configuration of the SyslogAppender which publishes the alerts to SysLog.
Adding a logging category
- Go to Cordys_install_dir/config directory and open the file Log4jConfiguration.xml.
- Add the following category
<category name="com.eibus.management.AlertSystem"> <priority value="info"/> <appender-ref ref="SyslogAppender"/> </category> - Add the Appender for SyslogAppender
<appender xmlns='' class='org.apache.log4j.net.SyslogAppender' name='SyslogAppender'> <param name='syslogHost' value='<machinename>' /> <param name='Facility' value='local6' /> <layout class='org.apache.log4j.SimpleLayout' /> </appender>
- Save the configuration.
Viewing log entries
- Perform any operation that raises alerts such as restarting the Monitor, sending a license report, restarting the database server and so on.
- Open SysLog and check the alerts as shown in the following figure.
